/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const accountRouter = {
  path: '/account',
  component: Layout,
  redirect: '/account/profile',
  hidden: true,
  meta: {
    title: '账号中心'
  },
  children: [
    {
      path: '/account/profile',
      component: () => import('@/views/account/profile/index'),
      name: 'AccountProfile',
      meta: {
        title: '基本信息',
        icon: 'em-icon-member',
        noCache: true
      }
    },
    {
      path: '/account/security',
      component: () => import('@/views/account/security/index'),
      name: 'AccountSecurity',
      meta: {
        title: '安全设置',
        icon: 'em-icon-authority',
        noCache: true
      }
    }
  ]
}

export default accountRouter
